// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) 

package com.yoyo.lib;

import java.io.Serializable;
import java.util.*;

public class UserInfo implements Serializable {

    public static final String CLOUD_RESPONSE_BODY = "cloud_response_body";
    public static final String CLOUD_RESPONSE_STATUS_CODE = "cloud_response_status_code";
    public static final String DATEEDITOR_MAX_VALUE = "date_editor_max_value";
    public static final String DATEEDITOR_MINI_VALUE = "date_editor_mini_value";
    public static final String DATEEDITOR_VALUE_TYPE = "date_editor_type";
    public static final String EDITOR_LIMIT_NUM = "editor_limit_num";
    public static final String EDITOR_TITLE = "text_editor_title";
    public static final String EDITOR_VALUE_TYPE = "editor_value_type";
    public static final int GO_MODULE_TYPE_CREATE = 2;
    public static final int GO_MODULE_TYPE_EDIT = 3;
    public static final int GO_MODULE_TYPE_PICK = 0;
    public static final int GO_MODULE_TYPE_SHOW = 1;
    public static final String GO_MODULE_TYPE_STRING = "module_type";
    public static final String MODULE_FRAGMENT_TYPE_CLASS = "module_fragment_type_class";
    public static final String MODULE_LIST_FILTER_EXPRESS = "module_list_filter";
    public static final String MODULE_LIST_SORT_EXPRESS = "module_list_sort";
    public static final String MODULE_LIST_TITLE = "module_list_indicator_name";
    public static final String MODULE_PICK_BIND_ARGS = "module_pick_bind_args";
    public static final String MODULE_TARGET_CLASS = "module_target_class";
    public static final String MODULE_TARGET_DETAIL = "module_target_detail";
    public static final String MODULE_TARGET_DTO_CLASS = "module_target_dto_class";
    public static final String MODULE_TARGET_TITILE = "module_target_title";
    public static final String NUMEDITOR_EDITORTYPE = "num_editor_type";
    public static final String NUMEDITOR_MAX_VALUE = "num_editor_max_value";
    public static final String NUMEDITOR_MINI_VALUE = "num_editor_mini_value";
    public static final String NUMEDITOR_NUMS_AFTER_SEPARATOR = "num_editor_nums_after_separator";
    public static final String NUMEDITOR_NUMS_ALLOWED_CHARACTERS = "num_editor_nums_allowed_characters";
    public static final String SYNC_DTO_ERRORS = "sync_dto_errors";
    public static final String TEXTARRAY_PICKER_ARGS = "text_array_picker_args";
    public static final String TEXTEDITOR_EDITORTYPE = "text_editor_type";
    public static final String USER_INFO = "user_info";
    public static final String USER_INFO_FRAGMENTS_ARGS = "user_info_fragments_args";
    private static final long serialVersionUID = 1L;
    private HashMap mInfoMap;

    public UserInfo() {
        mInfoMap = new HashMap();
    }

    public UserInfo(HashMap hashmap) {
        mInfoMap = hashmap;
    }

    public void clear() {
        mInfoMap.clear();
    }

    public boolean containsKey(String s) {
        return mInfoMap.containsKey(s);
    }

    public boolean getBoolean(String s) {
        boolean flag;
        if (mInfoMap.containsKey(s))
            flag = (( Boolean ) mInfoMap.get(s)).booleanValue();
        else
            flag = false;
        return flag;
    }

    public Object getInfoValue(String s) {
        return mInfoMap.get(s);
    }

    public int getInt(String s) {
        int i;
        if (mInfoMap.containsKey(s))
            i = (( Integer ) mInfoMap.get(s)).intValue();
        else
            i = 0;
        return i;
    }

    public Class getObjectClass(String key) {
        Class class1;
        if (mInfoMap.containsKey(key))
            class1 = ( Class ) mInfoMap.get(key);
        else
            class1 = null;
        return class1;
    }

    public String getString(String s) {
        String s1;
        if (mInfoMap.containsKey(s))
            s1 = ( String ) mInfoMap.get(s);
        else
            s1 = null;
        return s1;
    }

    public String[] getStringArray(String s) {
        String as[];
        if (mInfoMap.containsKey(s))
            as = ( String[] ) ( String[] ) mInfoMap.get(s);
        else
            as = null;
        return as;
    }

    public HashMap getUserInfo() {
        return mInfoMap;
    }

    public ArrayList getUserInfoArrayList(String s) {
        ArrayList arraylist;
        if (containsKey(s))
            arraylist = ( ArrayList ) mInfoMap.get(s);
        else
            arraylist = null;
        return arraylist;
    }

    public void putInfo(String s, Object obj) {
        mInfoMap.put(s, obj);
    }

    public void removeInfo(String s) {
        mInfoMap.remove(s);
    }

    public String toString() {
        StringBuilder stringbuilder = new StringBuilder();
        java.util.Map.Entry entry;
        for (Iterator iterator = mInfoMap.entrySet().iterator(); iterator.hasNext(); stringbuilder
                .append((new StringBuilder()).append(( String ) entry.getKey()).append(":")
                        .append(entry.getValue()).append("\n").toString()))
            entry = ( java.util.Map.Entry ) iterator.next();

        return stringbuilder.toString();
    }

}
